<?php 
/* SVN FILE: $Id$ */
/* ShopArticle Test cases generated on: 2009-09-06 18:51:45 : 1252255905*/
App::import('Model', 'ShopArticle');

class ShopArticleTestCase extends CakeTestCase {
	var $ShopArticle = null;
	var $fixtures = array('app.shop_article', 'app.article', 'app.shop');

	function startTest() {
		$this->ShopArticle =& ClassRegistry::init('ShopArticle');
	}

	function testShopArticleInstance() {
		$this->assertTrue(is_a($this->ShopArticle, 'ShopArticle'));
	}

	function testShopArticleFind() {
		$this->ShopArticle->recursive = -1;
		$results = $this->ShopArticle->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('ShopArticle' => array(
			'article_id'  => 1,
			'id'  => 1,
			'shop_id'  => 1,
			'price'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>